import Cookies from 'js-cookie'

const  token_Key="token";
/**
 * 获取token
 * @returns 
 */
export const get_token=()=>{
    return Cookies.get(token_Key);
}

/**
 * 设置token
 * @param token 
 * @returns 
 */
export const set_token=(token:string)=>{
    return Cookies.set(token_Key,token);
}

export const remove_token=()=>{

    Cookies.remove(token_Key);
}